home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-14 | 5.9 KB | 202 lines | [TEXT/KAHL] |
- TCL DEMO UPDATE INSTRUCTIONS
- ============================
- Copyright © 1990 Symantec Corporation. All rights reserved.
- 3/15/90
-
- INTRODUCTION
- ============
- Since the release of THINK C 4.0, a few bugs have been found in the
- TCL Demo programs (Starter, TinyEdit, and Art Class). This
- update modifies the appropriate source files to fix these bugs.
-
- This update uses a program called AutoWeave to create new demo source
- files from your existing files. It applies a set of "differences" files
- to the original demo program source files that came with your THINK C
- package to create new updated source files.
-
- There are two things to watch out for:
-
- • The AutoWeave program assumes that all of the Starter and
- TinyEdit files are in the same folder. And that the ArtClass
- files are divided into two folders called "Art Class Sources"
- and "Art Class Headers"
-
- • If you modified any of the original source files, you
- should move them to a different folder or rename them.
- Otherwise, the AutoWeave program will replace them with
- updated versions, and your changes will be lost.
-
- NOTE After you apply this update, you should use Starter as your
- base TCL project and ignore Pedestal. One of the things
- that this update does is fold the important code and comments
- from Pedestal into Starter.
-
- HOW TO USE IT
- =============
- •• Please read through these instructions before you begin.
-
- 0. Be sure that you have your original THINK C 2 and
- THINK C 4 disks from your THINK C 4.0 package.
-
- • If you haven't done so already, update your THINK Class
- • Library folder before you do this update.
-
- 1. Double-click on the file named "TCL Demo Update.Script"
- to launch the AutoWeave program.
-
- 2. The AutoWeave program will ask you to locate the original "TCL
- Demos" folder. Insert your THINK C 2 disk in the floppy drive,
- select the "TCL Demos" folder and click OK.
-
- 3. The AutoWeave program will ask you to locate your copy of the "TCL
- Demos" folder. This is where the modified files will be
- written (overwriting the old versions). Select the appropriate
- folder and click OK.
-
- 4. The AutoWeave program will ask you to locate the original
- "Art Class Folder". Insert your THINK C 4 disk (eject the THINK
- C 2 disk if you have a machine with one drive), select the folder
- "Art Class Folder" folder and click OK.
-
- 5. The AutoWeave program will ask you to locate your copy of "Art Class
- Folder". This is where the modified files will be
- written (overwriting the old versions). Select the appropriate
- folder and click OK.
-
- 6. The AutoWeave program will ask you to locate the "TCL Demo Update
- Diffs" folder. This folder is supplied as part of this update.
- Select this folder and click OK. (Be sure not to select
- "TCL Update Diffs" by mistake.)
-
- 7. The AutoWeave program will now modify the appropriate files, keeping
- you informed of its progress. When the Weaver has finished,
- you may want to check one or two of the files, to make sure
- that everything worked. (For example, if you chose the
- wrong Diffs folder in step 6, the Weaver wouldn't actually
- do anything, although it might act like it did.)
-
-
-
- SUMMARY OF THE CHANGES
- ======================
- Art Class
- ---------
- 1. CCaption.c
- FitToText no longer tests random byte for CARRIAGE_RETURN if
- t->teLength == 0 (fixes TCL 8).
-
- 2. CAboutBox.h
- Now #includes CApplication.h.
-
- IAboutBox parameter (itsSupervisor) is now a CApplication.
-
- 3. CAboutBox.c
- MouseOrKey now masks out the Caps Lock and Reset keys (fixes TCL 9).
-
- Now #includes CApplication.h.
-
- IAboutBox parameter (itsSupervisor) is now a CApplication.
-
- 4. CPaintPane.c
- Modified DoKeyDown to support scrolling keys on extended keyboards.
-
- DoCopy and DoPaste now dispose of the temporary PicHandles which
- they create.
-
- 5. CArtClassApp.c
- SetUpMenus now initializes gBartender with IBarOwner instead of
- IBartender.
-
- 6. CArtClassDoc.h
- Now #includes CApplication.h.
-
- IArtClassDoc parameter (aSupervisor) is now a CApplication.
-
- 7. CArtClassDoc.c
- IArtClassDoc parameter (aSupervisor) is now a CApplication.
-
- 8. CPatternsDir.h
- IPatternsDir parameter (aSupervisor) is now a CApplication.
-
- 9. CPatternsDir.c
- IPatternsDir parameter (aSupervisor) is now a CApplication.
-
- 10. CToolsDir.h
- IToolsDir parameter (aSupervisor) is now a CApplication.
-
- 11. CToolsDir.c
- IToolsDir parameter (aSupervisor) is now a CApplication.
-
-
- TinyEdit
- --------
- 12. CEditPane.c
- Modified DoKeyDown and DoAutoKey to support scrolling keys on
- extended keyboards.
-
- Now #includes Constants.h.
-
- DoCommand now sets the document's dirty bit and enables the Save
- and Save As commands when a Cut is executed.
-
- 13. CEditDoc.h
- Now #includes CApplication.h.
-
- IEditDoc parameter (aSupervisor) is now a CApplication.
-
- 14. CEditDoc.c
- OpenFile now has correct RequestMemory calls bracketing
- theFile->ReadAll(&theData).
-
- IEditDoc parameter (aSupervisor) is now a CApplication.
-
-
- Starter
- -------
- 15. CStarterApp.h
- Added declarations for SetUpMenus and UpdateMenus functions.
-
- 16. CStarterDoc.h
- Now #includes CApplication.h.
-
- IStarterDoc now requires aSupervisor to be a CApplication.
-
- Dispose method now specifies a void parameter list.
-
- Deleted declarations of Activate and Deactivate methods.
-
- Added declaration of UpdateMenus method.
-
- 17. CStarterApp.c
- Added copyright notice.
-
- Added comment to IStarterApp method.
-
- Added SetUpMenus method.
-
- Added UpdateMenus method.
-
- 18. CStarterDoc.c
- Added copyright notice.
-
- IStarterDoc's first parameter (aSupervisor) is now a CApplication.
-
- Deleted the Activate and Deactivate methods.
-
- Added the UpdateMenus method.
-
- Added code to NewFile to give each new window a unique title.
-
- OpenFile now has correct RequestMemory calls bracketing theFile->
- ReadAll(...).
-
- Added comments to BuildWindow method.
-
- 19. CStarterPane.c
- Added copyright notice.
-
- Modified a couple of comments.
-
- 20. Starter.c
- Added copyright notice.
-